//泛型
function login(username) {
    return "okk";
}
function login_T(username) {
    return username;
}
var res = login_T("黄紫红");
console.log(res);
function ypr(psd, kind, height) {
    return [psd, kind, height];
}
var res_ypr = ypr(123, "荔枝", 188);
console.log(res_ypr);
function hair(hair_color) {
    return hair_color;
}
var res_hair = hair("深棕"); //字面量类型
console.log(res_hair);
function test(eyes) {
    return eyes;
}
var res_eyes = test("manymany");
console.log("黄紫红有" + res_eyes + "个眼睛");
var brown = {
    name: "黄紫红",
    age: 19
};
console.log();
function new_brown(age) {
    return age;
}
var resAge = new_brown("age");
function tired(wow, yep) {
    return wow[yep];
}
var res_t = tired({ name: "超级无敌旋风陀螺制霸天才酷拽炸上天黄紫红", age: 199 }, "name");
console.log(res_t);
function tired2(obj, omg) {
    return obj[omg];
}
var res_i = tired2("!居然是黄紫红我们有救了！", "length");
console.log(res_i);
var oi = {
    length: 18,
    oioi: function () {
        console.log("oi想过年");
        return "OIoioioioioioi";
    }
};
console.log(oi.oioi);
